﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.BsicData.Infartrans.Migrations
{
    public partial class 仓库库位关联表 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
          

            migrationBuilder.CreateTable(
                name: "WHouseLocationModel",
                columns: table => new
                {
                    WLID = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    WhouseID = table.Column<int>(type: "int", nullable: false),
                    LocationID = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WHouseLocationModel", x => x.WLID);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "WHouseLocationModel");

            migrationBuilder.DropColumn(
                name: "DepermentID",
                table: "UserModeles");
        }
    }
}
